Skip to content

fix: treat text blocks as complex arguments#927

Merged
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/complex-arguments
Jun 9, 2026
Merged

fix: treat text blocks as complex arguments#927
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/complex-arguments

Conversation

@jtkiesel

@jtkiesel jtkiesel commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

What changed with this PR:

Text blocks are no longer considered simple method arguments when determining whether to break member chains.

Example

Input

"SOME TEXT".replace("SOME", "OTHER").replace("TEXT", "OTHER").replace(
  "SOME",
  """
  FOO"""
);

Output

"SOME TEXT"
  .replace("SOME", "OTHER")
  .replace("TEXT", "OTHER")
  .replace(
    "SOME",
    """
    FOO"""
  );

Relative issues or prs:

Closes #918

@jtkiesel jtkiesel merged commit 4fd38c2 into jhipster:main Jun 9, 2026
6 checks passed
@jtkiesel jtkiesel deleted the fix/complex-arguments branch June 9, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression with method chaining and text block

1 participant